package com.copa.l2413;

/**
 * @author copa
 * @createDate 2023-04-21 9:50
 * @function 常规法
 */
public class Test1 {

    public int smallestEvenMultiple(int n) {
        if (n <= 2) {
            return 2;
        }
        if (n % 2 != 0) {
            return n * 2;
        }
        return n;
    }

    public static void main(String[] args) {
        int n = 6;
        System.out.println(new Test1().smallestEvenMultiple(n));
    }
}
